package gateway.mgt.scaffold

import gateway.mgt.api.ApiGroup

class ApiGroupController {
    static scaffold = ApiGroup

    def release(String id) {
        def apiGroupInstance = ApiGroup.get(id)
        render apiGroupInstance.publish().refresh ? "success" : "failure"
    }
}
